package org.fatmansoft.teach.models;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

@Entity
@Data
@Table(name = "student_home_work",
        uniqueConstraints = {})
public class StudentHomeWork {

    @Id
    private Integer StudentHomeWorkId;

    @ManyToOne
    @JoinColumn(name = "student_id")
    private Student student;

    @ManyToOne
    @JoinColumn(name = "home_work_id")
    private HomeWork homeWork;

    private String homeWorkDetails;

    private String state;

    private String score;
}